#include "stdafx.h"
#include "process.h"
#include "sobelVideoController.h"
#include "cxcore.h"      // include core library interface

void process(IplImage* img) {

	SobelVideoController::getInstance()->processImage(img);
	cvShowImage( "Result", 
		SobelVideoController::getInstance()->getOutputImage());
	HWND hWnd= (HWND)cvGetWindowHandle("Result");
	UpdateWindow(hWnd); // force the window to repaint
}

